import SubSystem.SubSystemEncrypt;
import SubSystem.SubSystemWR;

public class FactorySystem {

    private SubSystemEncrypt subSystemEncrypt =new SubSystemEncrypt();
    private SubSystemWR subSystemWR=new SubSystemWR();

    public String dataEncrypt(String data){
        return subSystemEncrypt.encryptString(data);
    }

    public String dataDecrypt(String data){
        return subSystemEncrypt.decryptString(data);
    }

    public void textWrite(String content){
        subSystemWR.writeText(subSystemEncrypt.encryptString(content));
    }
    public String textRead(){
        return subSystemEncrypt.decryptString(subSystemWR.readText());
    }
}
